import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(persist)

export * from './modules/user'
// 优化：由 stores/index.js 统一导出，导入路径统一 ./stores
// 而且仓库维护在 stores/modules 中 stores / index.js
export * from './modules/room'

export default pinia
